package personal.xjl._23java1studentdemo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import personal.xjl._23java1studentdemo.model.Course;
import personal.xjl._23java1studentdemo.model.Student;

import java.util.List;

@Mapper
public interface CourseMapper {
    @Select("select * from course")
    List<Course> selectAll();
    @Select("select * from course limit #{fromIndex},#{pageSize}")
    List<Course> selectByPage(int fromIndex, int pageSize);
}
